package role;

public class Thieves extends Role {
    public Thieves() {
    }

    public Thieves(String name, int level, int gold) {
        super(name, level, gold);
        this.hp = this.level * 10;// hp
        this.atk = this.level * 3;// atk
        this.def = this.level * 1;// def
    }

    // 偷盗
    public void steal() {
        if (this.hp > 9) {
            this.hp -= 9;
            this.gold += 12;
            System.out.println("偷心成功，啾咪～小飞棍耐诺～");
        }
    }
}
